package com.lwj.dto.configuration;


import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

public class AttConfigurationDto {
    /**
     * 附件配置管理id
     */
    private String attConfigurationId;

    /**
     * 模块
     */
    @Length(min = 1,max = 20,message = "模块名称不能为空，且不能超过20个字")
    private String module;

    /**
     * 附件配置名称
     */
    @Length(min = 1,max = 20,message = "附件配置名称不能为空，且不能超过20个字")
    private String name;

    /**
     * 唯一编码
     */
    @Length(min = 1,max = 20,message = "编码不能为空，且不能超过20个字")
    private String code;

    /**
     * 允许文件格式
     */
    @Length(min = 1,max = 255,message = "模块名称不能为空，且不能超过255个字")
    private String allowedFileType;

    /**
     * 最大数量
     */
    @Min(value = 1,message = "最小数量不能为0")
    @Max(value = 20,message = "最大数量不能超过20")
    private Integer maxNumber;

    /**
     * 单文件大小限制（MB）
     */
    @Min(value = 1,message = "最小数量不能为0")
    @Max(value = 50,message = "最大数量不能超过50")
    private Integer singleAttchMaxSize;

    public String getAttConfigurationId() {
        return attConfigurationId;
    }

    public void setAttConfigurationId(String attConfigurationId) {
        this.attConfigurationId = attConfigurationId;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAllowedFileType() {
        return allowedFileType;
    }

    public void setAllowedFileType(String allowedFileType) {
        this.allowedFileType = allowedFileType;
    }

    public Integer getMaxNumber() {
        return maxNumber;
    }

    public void setMaxNumber(Integer maxNumber) {
        this.maxNumber = maxNumber;
    }

    public Integer getSingleAttchMaxSize() {
        return singleAttchMaxSize;
    }

    public void setSingleAttchMaxSize(Integer singleAttchMaxSize) {
        this.singleAttchMaxSize = singleAttchMaxSize;
    }
}
